const store = {
  namespaced: true,
  state: {
      showModal: false, // 控制弹框是否显示
      selectedDuty: null
  },
  mutations: { // 同步操作
      toggleShowModal(state, show) {
        state.showModal = show;
      },
      setSelectedDuty(state, duty) {
          state.selectedDuty = duty;
      }
  },
  actions: { // 异步操作
    
  }
}

export default store